<!--index.html-->  
{% extends 'base.html' %}  
{% block title %} <h1 style='font-family:华文楷体;'>欢迎光临我的博客</h1> {% endblock%}
{% block headmessage %}
        <h3 style="font-family:华文楷体";>本站文章列表</h3>  
{% endblock%}
{% block content %}
        {% for post in posts %}
	<div class='panel panel-default'>
		<div class='panel-heading'>
                <p style='font-family:微软雅黑;font-size:14pt;font-weight:bold;'>
                <a href='/post/{{post.slug}}'>{{post.title}}</a>
                </p>
		</div>
		<div class='panel-body' style='background-color:#ffffdd'>  
             	 <p style='font-family:华文楷体;font-size:14pt;letter-spacing:1pt;'>
                {{post.body|truncatechars:40}}
                </p>
		</div>
		<div class='panel-footer' style='background-color:#efefef;font-family:华文楷体;font-size:12pt;'>
		<p>{{post.pub_date|date:"Y M d,h:m:s"}}
		</p></div>
	</div >
        {% endfor %}
{% endblock %}
